package com.hzncc.scaffold.service;

import com.hzncc.scaffold.core.ResultT;
import com.hzncc.scaffold.entity.Other.News;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 新闻表 服务类
 * </p>
 *
 * @author DrunkBear
 * @since 2022-04-27
 */
public interface NewsService extends IService<News> {

    public ResultT saveNews(News news);

    public ResultT updateNews(News news);

    public ResultT stayAtTop(Integer newsId,Integer stayAtTop);

    public List<News> queryByEntity(News news);

    public ResultT detail(Integer newsId);
}
